package com.interview.observer;

public class WeatherDtation {
    public static void main(String[] args) {
        //创建一个主体对象
        WeatherData weatherData = new WeatherData();

        //创建一个观察者
        CurrentContitionsDisplay contitionsDisplay = new CurrentContitionsDisplay(weatherData);

        //改变主题
        weatherData.setMeasurements(78, 90, 29.2f);
    }
}
